/*
 * Lab05C.cpp
 *
 *  Created on: Feb 27, 2014
 *      Author: Anthony Varghese
 */

#include <iostream>


class MyData {
public:
	MyData();
	friend std::ostream& operator<<(std::ostream& out, const MyData& x);
	friend std::istream& operator>>(std::istream& in,        MyData& x);
private:
	int i;
	float f;
};

#include <fstream>


int main(){
	std::cout << "Lab 5 project C" << std::endl;
	MyData x;

	std::cout << " The object x has: " << std::endl;
	std::cout << x;
	std::cout << "done!" << std::endl;
}

MyData::MyData(){
	std::cout << "   MyData constructor " << std::endl;
}

std::ostream& operator<<(std::ostream& out, const MyData& x){
    out << x.i << " " << x.f << std::endl;
	return out;
}

std::istream& operator>>(std::istream& in,        MyData& x){
	in >> x.i >> x.f;
	return in;
}
